const install = (Vue, vm) => {
	// 发布测评--获取用户标签
	// 标签列表 type 1为店铺标签，2为套餐标签，3为基础设施标签，4为分享发现标签
	let labelList = (params = {}) => vm.$u.get("/api/project/getLabelList", params);

	// 标签列表 type 1为店铺标签，2为套餐标签，3为基础设施标签，4为分享发现标签
	let indexLabelList = (params = {}) => vm.$u.get("/api/project/getLabelList", params);


	// 添加标签 type 1为店铺标签，2为套餐标签，3为基础设施标签，4为分享发现标签
	let labelAdd = (params = {}) => vm.$u.post("/api/project/addLabel", params);

	// 行业列表
	let industryList = (params = {}) => vm.$u.get("/api/index/getIndustryList", params);

	// 注册
	let register = (params = {}) => vm.$u.post("/api/login/register", params);

	// 短信 type：1.注册短信 2.修改密码短信 3.验证码登录
	let sendMessage = (params = {}) => vm.$u.post("/api/index/sendSms", params);

	// 账号密码登录
	let login = (params = {}) => vm.$u.post("/api/login/login", params);

	// 手机号登录(验证码登录)
	let loginVerificationLogin = (params = {}) => vm.$u.post("/api/login/verificationLogin", params);

	// 小程序登录
	let wxLogin = (params = {}) => vm.$u.post("/api/login/wxLogin", params);

	// 修改登录密码
	let loginResetPassword = (params = {}) => vm.$u.post("/api/login/resetPassword", params);

	// 绑定手机号
	let loginBindingMobile = (params = {}) => vm.$u.post("/api/login/BindingMobile", params);

	// 测评订单列表
	let shopEvaluationList = (params = {}) => vm.$u.post("/api/project/shopEvaluationList", params);

	// 测评列表（未登录）
	let shopEvaluationListNoLogin = (params = {}) => vm.$u.get("/api/index/ShopEvaluationList", params);

	// 发布测评订单
	let shopEvaluationAdd = (params = {}) => vm.$u.post("/api/project/addShopEvaluation", params);

	// 修改测评订单
	let shopEvaluationEdit = (params = {}) => vm.$u.post("/api/project/addShopEvaluation", params);

	// 测评订单详情
	let shopEvaluationDetails = (params = {}) => vm.$u.post("/api/project/shopEvaluationDetails", params);

	// 测评订单详情(未登录)
	let shopEvaluationDetailsNoLogin = (params = {}) => vm.$u.post("/index/index/ShopEvaluationDetails", params);

	// 获取用户信息
	let userDetails = (params = {}) => vm.$u.get("/api/index/UserDetails", params);

	// 获取用户信息(未登录)
	let indexUserDetails = (params = {}) => vm.$u.get("/api/index/UserDetails", params);

	// 修改个人信息
	let userEdit = (params = {}) => vm.$u.post("/api/index/edit", params);

	// 用户获赞
	let shareSum = (params = {}) => vm.$u.get("/api/index/ShareSum", params);

	// 用户获赞(未登录)
	let indexShareSum = (params = {}) => vm.$u.get("/api/index/ShareSum", params);

	// 用户发布内容数量
	let shareCount = (params = {}) => vm.$u.get("/api/index/ShareCount", params);

	// 用户发布内容数量(未登录)
	let indexShareCount = (params = {}) => vm.$u.get("/api/index/ShareCount", params);

	// 地区列表
	let areaList = (params = {}) => vm.$u.get("/api/index/getArea", params);

	// 地区列表1
	let areaList1 = (params = {}) => vm.$u.get("/api/index/getAreainfo", params);

	// 地区基础设置
	let areaDetails = (params = {}) => vm.$u.get("/api/index/getAreaDetail", params);

	// 我的店铺列表
	let shopList = (params = {}) => vm.$u.get("/api/index/getShopList", params);

	// 商圈列表
	let businessAreasList = (params = {}) => vm.$u.get("/api/index/businessAreasList", params);

	// 添加店铺
	let shopAdd = (params = {}) => vm.$u.post("/api/index/addShop", params);

	// 店铺详情
	let shopDetails = (params = {}) => vm.$u.get("/api/index/getShopdetail", params);

	// 店铺编辑
	let shopEdit = (params = {}) => vm.$u.post("/api/index/editShop", params);

	// 店铺展示图
	let shopRotationImageEdit = (params = {}) => vm.$u.post("/api/index/ShopRotationImageedit", params);

	// 修改店铺标签
	let shopLabelEdit = (params = {}) => vm.$u.post("/api/index/ShopLabeledit", params);

	// 店铺标签绑定列表
	let shopLabelList = (params = {}) => vm.$u.post("/api/index/ShopLabelList", params);

	// 修改基础设施标签
	let shopFacilitiesLabelEdit = (params = {}) => vm.$u.post("/api/index/shopFacilitiesLabeledit", params);

	// 基础设施标签绑定列表
	let shopFacilitiesLabelList = (params = {}) => vm.$u.post("/api/index/shopFacilitiesLabelList", params);

	// 查询店铺认证信息
	let shopAuthenticationDetails = (params = {}) => vm.$u.post("/api/Instructions/shopAuthenticationDetail", params);

	// 商铺认证
	let shopAuthenticationAdd = (params = {}) => vm.$u.post("/api/Instructions/shopAuthenticationAdd", params);

	// 我的团单
	let shopPackageList = (params = {}) => vm.$u.get("/api/order/shopPackagelist", params);

	// 团单列表
	let shopPackageRelationList = (params = {}) => vm.$u.get("/api/order/getshopPackageRelationList", params);

	// 团单详情
	let shopPackageDetails = (params = {}) => vm.$u.get("/api/order/getShopPackageRelationDetails", params);

	// 发布团单
	let shopPackageAdd = (params = {}) => vm.$u.post("/api/index/addShopPackage", params);

	// 编辑团单
	let shopPackageEdit = (params = {}) => vm.$u.post("/api/index/editShopPackage", params);

	// 团单上下架
	let shopPackageUpperLowerShelves = (params = {}) => vm.$u.post("/api/project/UpperLowerShelves", params);

	// 查询所有城市
	let cityList = (params = {}) => vm.$u.get("/api/index/getCityList", params);

	// 经纬度获取地址信息
	let addressAnalysis = (params = {}) => vm.$u.get("/api/project/addressAnalysis", params);

	// 测评查询关联店铺  测评详情->活动地址
	let shopEvaluationRelationList = (params = {}) => vm.$u.post("/api/project/shopEvaluationRelationList", params);

	// 测评查询关联店铺(未登录)
	let shopEvaluationRelationListNoLogin = (params = {}) => vm.$u.post("/index/index/ShopEvaluationRelationList", params);

	// 达人认证名片
	let talentAuthenticationList = (params = {}) => vm.$u.get("/api/project/talentAuthenticationPerson", params);

	// 达人认证名片全部
	let talentAuthenticationGetList = (params = {}) => vm.$u.get("/api/project/talentAuthentication", params);
	//聊天订单信息
	let getorderevalinfo = (params = {}) => vm.$u.get("/api/project/getorderevalinfo", params);

	// 获取抖音用户信息
	let analysisDouying = (params = {}) => vm.$u.post("/api/Instructions/douying", params);

	// 抖音认证
	let analysisDyVerification = (params = {}) => vm.$u.post("/api/Instructions/dyVerification", params);

	// 获取小红书用户信息
	let analysisXiaohongshu = (params = {}) => vm.$u.post("/api/Instructions/xiaohongshu", params);

	// 小红书认证
	let analysisXhsVerification = (params = {}) => vm.$u.post("/api/Instructions/xhsVerification", params);

	// 获取微博用户信息
	let analysisWeibo = (params = {}) => vm.$u.post("/api/Instructions/weibo", params);

	// 微博认证
	let analysisWbVerification = (params = {}) => vm.$u.post("/api/Instructions/wbVerification", params);

	// 获取大众点评用户信息
	let analysisDzdp = (params = {}) => vm.$u.post("/api/Instructions/dzdp", params);

	// 大众点评认证
	let analysisDzdpVerification = (params = {}) => vm.$u.post("/api/Instructions/dzdpVerification", params);

	// 用户设置区域
	let userBusinessAreasAdd = (params = {}) => vm.$u.post("/api/user/userBusinessAreasAdd", params);

	// 用户编辑区域
	let userBusinessAreasEdit = (params = {}) => vm.$u.post("/api/user/userBusinessAreasAdd", params);

	// 用户商圈
	let userBusinessAreasList = (params = {}) => vm.$u.get("/api/index/UserBusinessAreasList", params);

	// 用户区域列表(未登录)
	let indexUserBusinessAreasList = (params = {}) => vm.$u.get("/api/index/UserBusinessAreasList", params);

	// 用户发布内容  
	let shareAdd = (params = {}) => vm.$u.post("/api/project/addShare", params);

	// 用户删除发布内容
	let shareDel = (params = {}) => vm.$u.get("/api/project/shareDel", params);

	// 用户编辑发布内容
	let shareEdit = (params = {}) => vm.$u.post("/api/project/addShare", params);

	// 我的订单
	let shopPackageOrderAdd = (params = {}) => vm.$u.post("/api/order/shopPackageOrderadd", params);


	// 发布内容列表
	let shareList = (params = {}) => vm.$u.get("/api/index/getSearchShareList", params);

	// 发布内容列表(未登录)
	let indexShareList = (params = {}) => vm.$u.get("/api/index/getSearchShareList", params);

	// 发布内容详情
	let shareDetails = (params = {}) => vm.$u.get("/api/project/getShareDetail", params);

	// 发布内容详情(未登录)
	let indexShareDetails = (params = {}) => vm.$u.get("/api/project/getShareDetail", params);

	// 收藏发布内容
	let userShareCollectionAdd = (params = {}) => vm.$u.post("api/order/ShareCollection", params);

	// 收藏发布内容列表
	let userShareCollectionList = (params = {}) => vm.$u.get("api/index/userShareCollection", params);

	// 取消收藏发布内容
	let userShareCollectionDel = (params = {}) => vm.$u.post("api/order/ShareCollection", params);

	// 评论列表
	let shareCommentList = (params = {}) => vm.$u.post("/api/project/shareCommentlist", params);

	// 发布评论
	let shareCommentAdd = (params = {}) => vm.$u.post("/api/project/shareCommentAdd", params);

	// 删除评论
	let shareCommentDel = (params = {}) => vm.$u.post("/api/project/shareCommentdel", params);

	// 回复评论列表
	let shareCommentReplyList = (params = {}) => vm.$u.post("/api/project/shareCommentReplylist", params);

	// 回复评论
	let shareCommentReplyAdd = (params = {}) => vm.$u.post("/api/project/shareCommentReplyAdd", params);

	// 删除回复评论
	let shareCommentReplyDel = (params = {}) => vm.$u.post("/api/project/shareCommentReplydel", params);

	// 点赞评论
	let shareCommentReplyFabulousAdd = (params = {}) => vm.$u.post("/api/project/addShareCommentReplyFabulous", params);

	// 点赞回复评论
	let shareCommentFabulousAdd = (params = {}) => vm.$u.post("/api/project/addShareCommentFabulous", params);

	// 团单订单  退款售后
	let shopPackageOrderList = (params = {}) => vm.$u.post("/api/project/shopPackageOrderList", params);

	// 团单订单导出
	let shopPackageOrderGetList = (params = {}) => vm.$u.post("/index/shop_package_order/getList", params);

	// 订单详情
	let shopPackageOrderDetails = (params = {}) => vm.$u.get("/api/order/shop_package_order_detail", params);

	// 生成二维码
	let qrcode = (params = {}) => vm.$u.post("/api/user/qrcode", params);

	// 订单拉起支付
	let shopPackageOrderPayOrder = (params = {}) => vm.$u.post("/api/order/payOrder", params);

	// 核销团单
	let shopPackageOrderWriteOff = (params = {}) => vm.$u.post("/api/order/shop_package_order_writeoff", params);

	// 收藏团单
	let userShopEvaluationCollectionAdd = (params = {}) => vm.$u.post("/api/order/ShopPackageCollection", params);

	// 取消收藏团单
	let userShopEvaluationCollectionDel = (params = {}) => vm.$u.post("/index/user_shop_package_collection/del", params);

	// 收藏团单列表 套餐
	let userShopEvaluationCollectionList = (params = {}) => vm.$u.get("/api/index/userShopPackageCollection", params);

	// 收藏店铺
	let userShopCollectionAdd = (params = {}) => vm.$u.post("/api/order/ShopCollection", params);

	// 取消收藏店铺
	let userShopCollectionDel = (params = {}) => vm.$u.post("/api/order/ShopCollectiondel", params);

	// 收藏店铺列表
	let userShopCollectionList = (params = {}) => vm.$u.get("/api/index/userShopCollection", params);

	// 团单列表
	let shopPackageGetList = (params = {}) => vm.$u.get("/api/index/getSearchShopPackageList", params);

	// 我的测评列表
	let shopEvaluationOrderList = (params = {}) => vm.$u.post("/api/user/shopEvaluationOrder", params);

	// 我的测评列表导出
	let shopEvaluationOrderGetList = (params = {}) => vm.$u.post("/index/shop_evaluation_order/getList", params);

	// 测评订单报名  达人申请测评
	let shopEvaluationOrderAdd = (params = {}) => vm.$u.post("/api/project/shop_evaluation_order_add", params);

	// 测评订单报名
	let shopEvaluationOrderDetails = (params = {}) => vm.$u.get("/api/project/shopEvaluationOrderdetail", params);

	// 充值余额
	let userRecharge = (params = {}) => vm.$u.post("/api/order/Recharge", params);

	// 修改支付密码
	let userResetPassword = (params = {}) => vm.$u.post("/api/index/resetPassword", params);

	// 测评查询店铺
	let indexShopEvaluationRelationList = (params = {}) => vm.$u.post("/api/project/shopEvaluationRelationList", params);

	// 提现
	// let userWithdrawal = (params = {}) => vm.$u.post("/index/user/Withdrawal", params);
	let userWithdrawal = (params = {}) => vm.$u.post("/api/order/Withdrawal", params);

	// 使用指引列表
	let instructionsList = (params = {}) => vm.$u.get("/api/instructions/insructlist", params);

	// 商家确认订单
	let shopEvaluationOrderConfirm = (params = {}) => vm.$u.post("/api/order/confirm", params);

	// 用户预约到店
	let shopEvaluationOrderUserConfirmAppointmentTime = (params = {}) => vm.$u.post("/api/project/userConfirmAppointmentTime", params);

	// 用户确认已到店
	let shopEvaluationOrderUserConfirmBePresent = (params = {}) => vm.$u.post("/api/order/userConfirmBePresent", params);

	// 商家确认或驳回稿件
	let shopEvaluationOrderShopConfirmShare = (params = {}) => vm.$u.post("/api/order/shopConfirmShare", params);

	// 用户确认已发布
	let shopEvaluationOrderUserConfirmRelease = (params = {}) => vm.$u.post("/api/order/userConfirmRelease", params);

	// 用户确认已发布
	let shopEvaluationOrderShopConfirmRelease = (params = {}) => vm.$u.post("/api/order/shopConfirmRelease", params);

	// 商家驳回用户已发布
	let shopEvaluationOrderShopReject = (params = {}) => vm.$u.post("/api/order/shopReject", params);

	// 商家确认预约时间
	let shopEvaluationOrderShopRefuseAppointmentTime = (params = {}) => vm.$u.post("/api/order/shopRefuseAppointmentTime", params);

	// 余额明细
	let userMoneyLog = (params = {}) => vm.$u.get("/api/user/userMoneyLog", params);

	// 余额明细导出
	let userMoneyLogGetList = (params = {}) => vm.$u.post("/index/user_money_log/getList", params);

	// 聊天页面顶部列表
	let newsGetList = (params = {}) => vm.$u.get("/api/user/getNewsList", params);

	// 系统消息
	let noticeList = (params = {}) => vm.$u.get("/api/user/getNoticelist", params);

	// 公共配置
	let commonDetails = (params = {}) => vm.$u.get("/api/index/commdetail", params);

	// 查询支付宝账号
	let userMoneyLogNewestDetails = (params = {}) => vm.$u.post("/index/user_money_log/newestDetails", params);

	// 用户列表
	let userList = (params = {}) => vm.$u.get("/api/index/getSearchUserList", params);

	// 被邀请列表
	let newsList = (params = {}) => vm.$u.get("/api/user/news", params);

	// 用户反馈
	let feedbackAdd = (params = {}) => vm.$u.post("/api/index/insfeedback", params);

	// 用户浏览记录
	let shopBrowseLogList = (params = {}) => vm.$u.get("/api/index/shopBrowseLog", params);

	// 发现浏览记录
	let shareBrowseLogList = (params = {}) => vm.$u.get("/api/project/share_browse_log", params);

	// 店铺团购浏览记录
	let shopPackageBrowseLogList = (params = {}) => vm.$u.get("/api/index/shopPackageBrowseLog", params);

	// 内容举报
	let shareReportAdd = (params = {}) => vm.$u.get("/api/project/share_report", params);

	// app微信登录
	let wxAppLogin = (params = {}) => vm.$u.post("/index/login/appWxLogin", params);

	// 修改手机号
	let userResetMobile = (params = {}) => vm.$u.post("/api/index/resetMobile", params);
	// 商家申诉
	let shopEvaluationOrderAppeal = (params = {}) => vm.$u.post("/api/order/appeal", params);

	// 用户申诉
	let shopEvaluationOrderUserAppeal = (params = {}) => vm.$u.post("/api/order/UserAppeal", params);

	// 团单退款
	let shopPackageOrderRefund = (params = {}) => vm.$u.post("/api/order/refund", params);

	// 商家审核团单退款
	let shopPackageOrderIsRefund = (params = {}) => vm.$u.post("/api/order/isRefund", params);

	// 解绑微信
	let userUnboundWx = (params = {}) => vm.$u.post("/api/index/UnboundWx", params);
	let getCityAllData = (params = {}) => vm.$u.post("/api/index/getCityAllData", params);
	//组件获取数据
	let getProvincesAllData = (params = {}) => vm.$u.post("/api/index/getProvincesAllData", params);
	let getCitysAllData = (params = {}) => vm.$u.post("/api/index/getCitysAllData", params);
	let getAreasAllData = (params = {}) => vm.$u.post("/api/index/getAreasAllData", params);
	//退出登录
	let loginout = (params = {}) => vm.$u.post("/api/login/loginout", params);
	//推送
	let appMessagePush = (params = {}) => vm.$u.post("/api/Singlepushservice/newPushSingleByCid", params);
	//发送邀请
	let shopEvaluationAccept = (params = {}) => vm.$u.post("/api/project/shopEvaluationAccept", params);
	//查询用户是否邀请测评
	let getAcceptEval = (params = {}) => vm.$u.post("/api/project/getAcceptEval", params);
	//拒绝邀请
	let evaluationRefuse = (params = {}) => vm.$u.post("/api/project/evaluationRefuse", params);
	//订单订单描述
	let setStepDescribe = (params = {}) => vm.$u.post("/api/order/setStepDescribe", params);
	// 订单进度
	let getStepDescribe = (params = {}) => vm.$u.post("/api/order/getStepDescribe", params);
	// 将各个定义的接口名称，统一放进对象挂载到vm.$u.api(因为vm就是this，也即this.$u.api)下
	vm.$u.api = {
		userUnboundWx,
		shopPackageOrderRefund,
		shopPackageOrderIsRefund,
		shopEvaluationOrderAppeal,
		shopEvaluationOrderUserAppeal,
		userMoneyLogGetList,
		userResetMobile,
		wxAppLogin,
		shareReportAdd,
		shopBrowseLogList,
		shareBrowseLogList,
		shopPackageBrowseLogList,
		feedbackAdd,
		newsList,
		userList,
		noticeList,
		labelList,
		indexLabelList,
		industryList,
		register,
		sendMessage,
		login,
		wxLogin,
		loginResetPassword,
		shopEvaluationList,
		userDetails,
		shareSum,
		indexShareSum,
		shareCount,
		indexShareCount,
		areaList,
		areaList1,
		areaDetails,
		shopList,
		businessAreasList,
		shopAdd,
		shopDetails,
		shopEdit,
		shopRotationImageEdit,
		shopLabelEdit,
		shopLabelList,
		shopFacilitiesLabelEdit,
		shopFacilitiesLabelList,
		labelAdd,
		shopAuthenticationDetails,
		shopAuthenticationAdd,
		shopPackageList,
		shopPackageDetails,
		shopPackageAdd,
		shopPackageEdit,
		shopEvaluationAdd,
		shopEvaluationEdit,
		shopEvaluationDetails,
		shopEvaluationDetailsNoLogin,
		shopEvaluationListNoLogin,
		cityList,
		addressAnalysis,
		shopEvaluationRelationList,
		shopEvaluationRelationListNoLogin,
		userEdit,
		talentAuthenticationList,
		talentAuthenticationGetList,
		analysisDouying,
		analysisXiaohongshu,
		shopPackageRelationList,
		analysisWeibo,
		analysisDzdp,
		analysisDyVerification,
		analysisWbVerification,
		analysisDzdpVerification,
		analysisXhsVerification,
		userBusinessAreasAdd,
		userBusinessAreasEdit,
		userBusinessAreasList,
		indexUserBusinessAreasList,
		shareAdd,
		shopPackageOrderAdd,
		loginBindingMobile,
		shareList,
		indexUserDetails,
		indexShareList,
		shareDetails,
		indexShareDetails,
		userShareCollectionAdd,
		userShareCollectionList,
		userShareCollectionDel,
		shareCommentList,
		shareCommentAdd,
		shareCommentDel,
		shareCommentReplyList,
		shareCommentReplyAdd,
		shareCommentReplyDel,
		shareCommentReplyFabulousAdd,
		shareCommentFabulousAdd,
		shopPackageOrderList,
		shopPackageOrderGetList,
		shopPackageOrderDetails,
		qrcode,
		shopPackageOrderPayOrder,
		shopPackageOrderWriteOff,
		userShopEvaluationCollectionAdd,
		userShopEvaluationCollectionDel,
		userShopCollectionAdd,
		userShopCollectionDel,
		userShopCollectionList,
		userShopEvaluationCollectionList,
		shopPackageGetList,
		shopEvaluationOrderList,
		shopEvaluationOrderGetList,
		shopEvaluationOrderAdd,
		shopEvaluationOrderDetails,
		userRecharge,
		userResetPassword,
		indexShopEvaluationRelationList,
		shopPackageUpperLowerShelves,
		loginVerificationLogin,
		userWithdrawal,
		shareDel,
		shareEdit,
		instructionsList,
		shopEvaluationOrderConfirm,
		shopEvaluationOrderUserConfirmAppointmentTime,
		shopEvaluationOrderUserConfirmBePresent,
		shopEvaluationOrderShopConfirmShare,
		shopEvaluationOrderUserConfirmRelease,
		shopEvaluationOrderShopConfirmRelease,
		shopEvaluationOrderShopReject,
		shopEvaluationOrderShopRefuseAppointmentTime,
		userMoneyLog,
		newsGetList,
		commonDetails,
		userMoneyLogNewestDetails,
		getCityAllData,
		getProvincesAllData,
		getCitysAllData,
		getAreasAllData,
		getorderevalinfo,
		loginout,
		appMessagePush,
		shopEvaluationAccept,
		getAcceptEval,
		evaluationRefuse,
		setStepDescribe,
		getStepDescribe
	}
}

export default {
	install
}
